@extends('model/admin')
@section('title','添加品牌')
@section('content')
	@if (count($errors) > 0)
	<div class="mws-form-message error">
    	This is an error message
        <ul>
        	 @foreach ($errors->all() as $error)
                <li>{{ $error }}</li>
            @endforeach
        </ul>
    </div>
    @endif
	<div class="mws-panel grid_8">
    	<div class="mws-panel-header">
        	<span>添加品牌</span>
        </div>
        <div class="mws-panel-body no-padding">
        	<form class="mws-form" action="/admin/goodsbrand/create" method='post' enctype='multipart/form-data'>
        		<div class="mws-form-inline">
        			<div class="mws-form-row">
        				<label class="mws-form-label">品牌图标</label>
        				<div class="mws-form-item">
        					<input type="file" class="small" name='picbrand'>
        				</div>
        			</div>
        			<div class="mws-form-row">
        				<label class="mws-form-label">品牌名</label>
        				<div class="mws-form-item">
        					<input type="text" class="small" name='brand'>
        				</div>
        			</div>
        			<div class="mws-form-row">
        				<label class="mws-form-label">状态</label>
        				<div class="mws-form-item clearfix">
        					<ul class="mws-form-list inline">
        						<li><input type="radio" name='state' value='0' checked> <label>待审核</label></li>
        						<li><input type="radio" name='state' value='1'> <label>上架</label></li>
        						<li><input type="radio" name='state' value='2'> <label>下架</label></li>
        					</ul>
        				</div>
        			</div>
        		</div>
        		{{ csrf_field() }}
        		<div class="mws-button-row">
        			<input type="submit" value="确认添加" class="btn btn-danger">
        			<input type="reset" value="重新填写" class="btn ">
        		</div>
        	</form>
        </div>    	
    </div>
@endsection